<template>
  <div>
    <div class="nav">
      <router-link to="/discover/tuijian">推荐</router-link>
      <router-link to="/discover/toplist">排行榜</router-link>
      <router-link to="/discover/playlist">歌单</router-link>
    </div>

    <!-- 二级路由出口 -->
    <router-view />
  </div>
</template>

<script>
export default {}
</script>

<style scoped>
img {
  width: 100%;
}
.nav {
  height: 30px;
  display: flex;
  background-color: #f00;
}
.nav a {
  flex: 1;
  text-decoration: none;
  text-align: center;
  line-height: 30px;
  color: #fff;
}

.nav a.router-link-active {
  color: #0f0;
}
</style>
